package cn.tedu.egweibo6.pojo.bto;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.hibernate.validator.constraints.Range;

import javax.validation.constraints.NotBlank;

@Data
public class CommentDTO {
    @ApiModelProperty(value = "评论内容",required = true)
    @NotBlank(message = "评论内容不能为空")
    private String content;
    @ApiModelProperty(value = "微博ID",required = true)
//    @NotBlank(message = "微博ID不能为空") // 不可以打，会和@Range注解冲突
    @Range(min = 200,max = 300,message = "微博ID必须在200~300之间")
    private Long weiboId;

}
